<?php
/**
 * Model Traits Permssion
 * User: zng
 * Date: 2019/11/15
 * Time: 15:08
 */
namespace app\admin\traits\model;

Trait Roles {

    public function rolePermission()
    {
        return $this->belongsToMany('Permission', '\\app\\admin\\model\\RolePermission', 'permission_id', 'role_id');
    }

}